﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" /> 
    <script src="../../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function ()
        {
            var jsonObj = {};
            jsonObj.Rows = [
                { id: 3, name: "林三", sex: "男", birthday: "1989/01/12" },
                { id: 43, name: "陈丽", sex: "女", birthday: "1989/01/12" },
                { id: 33, name: "啊三", sex: "男", birthday: "1981/12/12" },
                { id: 34, name: "表三", sex: "男", birthday: "1983/01/12" },
                { id: 43, name: "陈丽", sex: "女", birthday: "1989/01/12" },
                { id: 10, name: "成三", sex: "男", birthday: "1989/11/13" },
                { id: 34, name: "都三", sex: "女", birthday: "1989/04/2" },
                { id: 324, name: "鄂三", sex: "男", birthday: "1999/05/5" },
                { id: 344, name: "林三", sex: "男", birthday: "1969/02/2" },
                { id: 1, name: "王开", sex: "男", birthday: "1989/01/2" },
                 { id: 34, name: "都三", sex: "女", birthday: "1989/04/2" },
                { id: 324, name: "鄂三", sex: "男", birthday: "1999/05/5" },
                { id: 344, name: "林三", sex: "男", birthday: "1969/02/21" },
                { id: 1, name: "王开", sex: "男", birthday: "1989/01/2" }
            ];
            $("#maingrid").ligerGrid({
                columns: [
                { display: '排序', name: 'id', width: 100, type: 'int', editor: { type: 'int'} },
                { display: '名字', name: 'name', width: 100 },
                { display: '性别', name: 'sex', width: 100, isSort: false,
                    editor: { type: 'select', data: [[0, '男'], [1, '女']] }
                },
                { display: '生日', name: 'birthday', type: 'date', width: 100, editor: { type: 'date'} }
                ], width: 600,
                data: jsonObj, 
                pageSizeOptions: [5, 10]
            });
             
        });
    </script>
</head>
<body>
 
    <div id="maingrid"></div>
 
      <div style="display:none;">
      
</div>
</body>
</html>
